package com.yingma.common.configuration;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ysf
 * @date 2020/3/7 20:49
 */
@Configuration
public class MybatisPlusConfig {
    //注入到Spring容器中
    @Bean
    public PaginationInterceptor paginationInterceptor(){

        return new PaginationInterceptor();
    }




}
